﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MP/backend.Master" AutoEventWireup="true" CodeBehind="Tinh.aspx.cs" Inherits="TimViec.backend.Tinh" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<h4 class="alert_info">Quản lý tỉnh - thành phố</h4>
<div class="module width_full">
    <div class="p_10">
        <asp:Literal ID="lbTinhId" runat="server" Visible="false"></asp:Literal>
        <table cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td valign="top" style="width:40%;">
                    <table cellpadding="0" cellspacing="10">
                        <tr>
                            <td><strong>Tỉnh/Thành phố</strong></td>
                            <td><asp:TextBox ID="txtTinh" runat="server" Width="300px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td><strong>Quốc gia</strong></td>
                            <td><asp:DropDownList ID="droQuocGia" runat="server"></asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <asp:Button ID="btSave" runat="server" CssClass="buttonNew" Text="Lưu lại" 
                                        onclick="btSave_Click" />
                                <asp:Button ID="btUpdate" runat="server" CssClass="buttonNew" Text="Cập nhật" 
                                        Visible="false" onclick="btUpdate_Click" />
                                <asp:Button ID="btCancel" runat="server" CssClass="buttonCancel" Text="Hủy bỏ" 
                                        onclick="btCancel_Click" />
                            </td>
                        </tr>
                    </table>
                </td>
                <td valign="top">
                    <table cellpadding="0" cellspacing="10">
                        <tr>
                            <td>Quốc gia: <asp:DropDownList ID="droQuocGiaSearch" runat="server" 
                                    AutoPostBack="True" 
                                    onselectedindexchanged="droQuocGiaSearch_SelectedIndexChanged"></asp:DropDownList></td>
                            <td>Từ khóa: <asp:TextBox ID="txtSearch" runat="server" Width="300px"></asp:TextBox></td>
                            <td><asp:Button ID="btSearch" runat="server" Text="Tìm kiếm" CssClass="buttonNew" 
                                    onclick="btSearch_Click" /></td>
                        </tr>
                    </table>
                    <table cellpadding="0" cellspacing="0" class="tablesorter">
                        <thead>
                            <tr>
                                <th>STT</th>
                                <th>Tỉnh/Thành phố</th>
                                <th>Quốc gia</th>
                                <th>Chức năng</th>
                            </tr>
                        </thead>
                        <asp:Repeater ID="rptTinh" runat="server" onitemcommand="rptTinh_ItemCommand">
                            <ItemTemplate>
                                <tr>
                                    <td><%#Container.ItemIndex +1 %></td>
                                    <td><%#Eval("Ten") %></td>
                                    <td><%#Eval("QuocGia")%></td>
                                    <td>
                                        <asp:LinkButton ID="lbtEdit" runat="server" CommandName="Edit"
                                                CommandArgument='<%#Eval("TinhId") %>' ToolTip="Cập nhật thông tin tỉnh/thành phố" CausesValidation="false"><img src="../images/backend/icn_edit.png" /></asp:LinkButton>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                </td>
            </tr>
        </table>
    </div>
</div>
</asp:Content>
